package com.example.mardan.viewmodel;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;

import java.util.List;

import com.example.mardan.entity.YuanquChapter;
import com.example.mardan.repository.YuanquRepository;

public class YuanquViewModel extends ViewModel {
    private YuanquRepository repository;
    private LiveData<List<YuanquChapter.ResultDTO>> yuanquListLiveData;

    public YuanquViewModel() {
        repository = new YuanquRepository();
        yuanquListLiveData = repository.getYuanquList();
    }

    public LiveData<List<YuanquChapter.ResultDTO>> getYuanquList() {
        return yuanquListLiveData;
    }
}